message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
TEST: Modify test/recipes/15-test_rsapss.t to leave artifacts behind | @@ -46,4 +46,3 @@ ok(run(app(['openssl', 'dgst', '-prverify', srctop_file('test', 'testrsa.pem'),
'-sigopt', 'rsa_mgf1_md:sha512', '-signature', 'testrsapss.sig',
srctop_file('test', 'testrsa.pem')])),
"openssl dgst -prverify");
-unlink 'testrsapss.sig';
|
Uncomment test AdultModelMergeTest | @@ -43,11 +43,11 @@ Y_UNIT_TEST_SUITE(TModelSummTests) {
TDataProviderPtr dataProvider = GetAdultPool();
- Y_UNUSED(dataProvider);
- /*TDataProviders dataProviders;
+ TDataProviders dataProviders;
dataProviders.Learn = dataProvider;
dataProviders.Test.push_back(dataProvider);
+ THolder<TLearnProgress> learnProgress;
Tr... |
Test: Require error plugin for high-level API test | @@ -30,4 +30,4 @@ add_kdb_test (nested REQUIRED_PLUGINS)
add_kdb_test (simple REQUIRED_PLUGINS error)
set_source_files_properties (testkdb_highlevel PROPERTIES COMPILE_FLAGS -Wno-sign-promo)
-add_kdb_test (highlevel LINK_ELEKTRA elektra-highlevel)
+add_kdb_test (highlevel LINK_ELEKTRA elektra-highlevel REQUIRED_PLUGINS... |
wip: bot-elitebgs | @@ -16,7 +16,11 @@ void embed_from_json(char *str, size_t len, void *p_embed)
{
using namespace discord::channel::embed;
dati *embed = (dati*)p_embed;
-
+/* @todo remove this test
+ add_field(embed, "bla", "blu", false);
+ add_field(embed, "bli", "blo", false);
+ add_field(embed, "blia", "blyat", false);
+*/
struct siz... |
LPC55xx: correct initial EXC_RETURN for v8-M NS. | @@ -89,6 +89,11 @@ __STATIC_INLINE uint32_t xPSR_InitVal (bool_t privileged, bool_t thumb) {
/// Stack Frame Initialization Value (EXC_RETURN[7..0])
#if (DOMAIN_NS == 1)
#define STACK_FRAME_INIT_VAL 0xBCU
+// --- Begin DAPLink change
+// - Change EXC_RETURN.ES and .S to 0 (NS)
+#elif (defined(__ARM_ARCH_8M_MAIN__) && (... |
util: add support for aws customsized error reporting logger | #include <fluent-bit/flb_utils.h>
#include <fluent-bit/flb_utf8.h>
+#ifdef FLB_HAVE_AWS_ERROR_REPORTER
+#include <fluent-bit/aws/flb_aws_error_reporter.h>
+
+extern struct flb_aws_error_reporter *error_reporter;
+#endif
+
void flb_utils_error(int err)
{
char *msg = NULL;
@@ -99,11 +105,23 @@ void flb_utils_error(int er... |
Recognize empty string as an incorrect cache name | # SPDX-License-Identifier: BSD-3-Clause-Clear
#
-import pytest
import logging
-from tests.utils.random import RandomGenerator, DefaultRanges
+
+import pytest
+
from pyocf.types.cache import Cache, CacheMode, EvictionPolicy, MetadataLayout, PromotionPolicy
+from pyocf.types.shared import OcfError, CacheLineSize
from pyo... |
Update description of yr_bitmask_find_non_colliding_offset function. | @@ -40,20 +40,22 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// to 1 at the same offset. This function assumes that the first bit in B is 1
// and do optimizations that rely on that.
//
-// The function also receives a pointer to an uint64_t where the function stores
+// The function also receives a... |
NRF52840 only supports master mode for SPI_3, SPI_3_SLAVE_* removed | @@ -220,7 +220,6 @@ syscfg.defs:
description: 'Enable nRF52xxx SPI Master 3'
value: 0
restrictions:
- - "!SPI_3_SLAVE"
- 'MCU_TARGET == "nRF52840" || !SPI_3_MASTER'
SPI_3_MASTER_PIN_SCK:
description: 'SCK pin for SPI_3_MASTER'
@@ -232,25 +231,6 @@ syscfg.defs:
description: 'MISO pin for SPI_3_MASTER'
value: ''
- SPI_3_... |
caps: returning bits as uint8 instead of size_t | @@ -99,7 +99,7 @@ static inline bool type_is_vroot(enum objtype type)
*
* @return Number of bits a VNode object occupies.
*/
-static inline size_t vnode_objbits(enum objtype type)
+static inline uint8_t vnode_objbits(enum objtype type)
{
// This function should be emitted by hamlet or somesuch.
STATIC_ASSERT(60 == ObjT... |
CMake: fix install RPATH for macOS | @@ -30,6 +30,7 @@ endif (CMAKE_VERSION VERSION_LESS 3.9)
# fix macOS RPATH issues
set (CMAKE_MACOSX_RPATH 1)
set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set (CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "elektra-misc")
|
* ejdb2 dart prerelease nullsafety moved to release | @@ -10,6 +10,6 @@ environment:
dependencies:
json_at: ^2.0.0-nullsafety.1
- path: ^1.8.0-nullsafety.3
- quiver: ^3.0.0-nullsafety.2
- test: ^1.16.0-nullsafety.13
+ path: ^1.8.0
+ quiver: ^3.0.1
+ test: ^1.17.8
|
[voting-reward] reload the VPR upon rollback | @@ -19,6 +19,7 @@ type Status struct {
bestBlock *types.Block
libState *libStatus
bps *bp.Snapshots
+ sdb *state.ChainStateDB
}
// NewStatus returns a newly allocated Status.
@@ -26,6 +27,7 @@ func NewStatus(c bp.ClusterMember, cdb consensus.ChainDB, sdb *state.ChainStateD
s := &Status{
libState: newLibStatus(consensus... |
Added deployment Travis task | @@ -146,3 +146,14 @@ script:
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
otool -L bin/vcf_validator
fi
+
+deploy:
+ provider: releases
+ api_key: $GITHUB_TOKEN
+ file:
+ - bin/vcf_validator
+ - bin/vcf_debugulator
+ skip_cleanup: true
+ on:
+ repo: cyenyxe/vcf-validator
+ branch: release/0.9
|
ci: enable strict pytest marker | @@ -8,6 +8,7 @@ addopts =
-s
--embedded-services esp,idf
--tb short
+ --strict-markers
--skip-check-coredump y
# ignore DeprecationWarning
@@ -65,7 +66,7 @@ markers =
adc: ADC related tests should run on adc runners
# multi-dut markers
- ieee082154: ieee082154 related tests should run on ieee082154 runners.
+ ieee80215... |
Removed unnecessary if when generating a function call | @@ -498,10 +498,6 @@ function Coder:call_pallene_function(dsts, f_id, base, xs)
args = table.concat(args, ", "),
})
- if #ret_types == 0 then
- assert(dsts == {} or #dsts == 0 or (#dsts > 0 and dsts[1] == false))
- return call
- else
if dsts[1] then
return (util.render([[
$temp_args
@@ -521,7 +517,6 @@ function Coder:c... |
update user name cl_sos
verified again, with user name cl-sos. it doesn't work to fix
but cl_sos is working, so update the user name to cl_sos. that means
clear has naming rules for user name | @@ -235,16 +235,16 @@ partition. Follow these steps:
.. code-block:: console
- # useradd cl-sos
- # passwd cl-sos
- # usermod -G wheel -a cl-sos
+ # useradd cl_sos
+ # passwd cl_sos
+ # usermod -G wheel -a cl_sos
#. Enable weston service
.. code-block:: console
- # systemctl enable weston@cl-sos
- # systemctl start wes... |
Fix missing array transpose in debug assert | @@ -861,7 +861,7 @@ void compute_ideal_weights_for_decimation_table(
{
for (int i = 0; i < texel_count; i++)
{
- assert(i == dt.weight_texel[i][0]);
+ assert(i == dt.weight_texel[0][i]);
weight_set[i] = eai_in.weights[i];
weights[i] = eai_in.weight_error_scale[i];
|
options/linux-headers: Define AUTOFS_SUPER_MAGIC | @@ -28,6 +28,7 @@ extern "C" {
#define MSDOS_SUPER_MAGIC 0x4d44
#define BTRFS_SUPER_MAGIC 0x9123683E
#define REISERFS_SUPER_MAGIC 0x52654973
+#define AUTOFS_SUPER_MAGIC 0x0187
#ifdef __cplusplus
}
|
changed resources compilation as on project makefile | @@ -114,8 +114,13 @@ cmd_ : $(OBJ_LIB)
%.o: %.s
$(CC) -x assembler-with-cpp -MMD $(FLAGS_LIB) -c $< -o $@
-%.s: %.res
- $(RESCOMP) $< $@
+out/%.o: %.rs
+ $(CC) -x assembler-with-cpp $(FLAGS) -c $*.rs -o $@
+ $(CP) $*.d out/$*.d
+ $(RM) $*.d
+
+%.rs: %.res
+ $(RESCOMP) $*.res $*.rs -dep out/$*.o
%.o80: %.s80
$(ASMZ80) $... |
actions: use AdoptOpenJDK via actions/setup-java@v2 | @@ -32,6 +32,10 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7 # Not needed with a .ruby-version file
+ - uses: actions/setup-java@v2
+ with:
+ distribution: 'adopt' # Use AdoptOpenJDK
+ java-version: '14'
- name: Install Dependencies
run: |
@@ -50,7 +54,6 @@ jobs:
brew install libuv
brew install lua
brew ... |
Fix row count expectation in tests | @@ -120,7 +120,7 @@ static int handle_metadata(readstat_metadata_t *metadata, void *ctx) {
if (obs_count != -1) {
push_error_if_doubles_differ(rt_ctx,
- rt_ctx->file->rows, obs_count,
+ expected_row_count(rt_ctx), obs_count,
"Number of observations");
}
@@ -308,14 +308,7 @@ readstat_error_t read_file(rt_parse_ctx_t *pa... |
VMS: modify crypto/bn/asm/ia64.S to build properly
On VMS, 'abort' is really 'decc$abort' | #else
#define ADDP add
#endif
+#ifdef __VMS
+.alias abort, "decc$abort"
+#endif
#if 1
//
@@ -1428,6 +1431,7 @@ bn_div_words:
mov ar.ec=0 // don't rotate at exit
mov pr.rot=0 }
{ .mii; mov L=r33 // save l
+ mov r25=r0 // needed if abort is called on VMS
mov r36=r0 };;
.L_divw_shift: // -vv- note signed comparison
|
nimble/host: Fix tests compilation
This fix build regression after BLE_MONITOR was moved to transport. | @@ -1849,14 +1849,14 @@ ble_hs_test_util_assert_mbufs_freed(
}
int
-ble_transport_to_ll_acl(struct os_mbuf *om)
+ble_transport_to_ll_acl_impl(struct os_mbuf *om)
{
ble_hs_test_util_prev_tx_enqueue(om);
return 0;
}
int
-ble_transport_to_ll_cmd(void *buf)
+ble_transport_to_ll_cmd_impl(void *buf)
{
ble_hs_test_util_hci_ou... |
fix build of util for Android and USE_STL_SYSTEM | @@ -14,6 +14,15 @@ PEERDIR(
contrib/libs/double-conversion
)
+IF (OS_ANDROID)
+ PEERDIR(
+ contrib/libs/android_ifaddrs
+ )
+ ADDINCL(
+ contrib/libs/android_ifaddrs
+ )
+ENDIF()
+
# datetime
JOIN_SRCS(
all_datetime.cpp
|
chip/npcx/hwtimer.c: Format with clang-format
BRANCH=none
TEST=none | @@ -89,8 +89,8 @@ void __hw_clock_event_set(uint32_t deadline)
*/
evt_cnt = FP_TO_INT((fp_inter_t)(evt_cnt_us)*inv_evt_tick);
if (evt_cnt > TICK_EVT_MAX_CNT) {
- CPRINTS("Event overflow! 0x%08x, us is %d",
- evt_cnt, evt_cnt_us);
+ CPRINTS("Event overflow! 0x%08x, us is %d", evt_cnt,
+ evt_cnt_us);
evt_cnt = TICK_EVT_M... |
fix valgrind link | @@ -364,7 +364,8 @@ you also need to tell `valgrind` to not intercept those calls itself, and use:
```
By setting the `MIMALLOC_SHOW_STATS` environment variable you can check that mimalloc is indeed
-used and not the standard allocator. Even though the option is called `--soname-synonyms`[valgrind-soname], this also
+u... |
update Protobuf README
Update Protobuf README.md to refer to gRPC's README.md for instructions how to install Protobuf. | Protocol Buffers (a.k.a. `protobuf`) is Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. TizenRT features a port for `protobuf` version 3.5.1, with support for C++ language.
You can find details of `protobuf` at https://github.com/google/protobuf.
+Before you proceed wi... |
Fix asan warning in byteread.c | @@ -253,7 +253,7 @@ int byteread_int32(bytestream * s, uint32_t * value)
}
else {
const uint8_t * ptr = s->data + s->ptr;
- *value = (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3];
+ *value = (((uint32_t)ptr[0]) << 24) | (((uint32_t)ptr[1]) << 16) | (((uint32_t)ptr[2]) << 8) | ptr[3];
s->ptr += 4;
return 0;
}... |
[io] fix bugwith cf-scale in vview | @@ -144,7 +144,7 @@ class VViewOptions(object):
self.max_time = float(a)
elif o == '--cf-scale':
- self.opts.cf_scale_factor = float(a)
+ self.cf_scale_factor = float(a)
elif o == '--no-cf':
self.cf_disable = True
|
Use $(env ) instead of os.getenv() | @@ -100,11 +100,11 @@ function _find_intel_on_windows(opt)
opt = opt or {}
-- find ifortvars_bat.bat
- local paths = {os.getenv("IFORT_COMPILER20")}
+ local paths = {"$(env IFORT_COMPILER20)"}
local ifortvars_bat = find_file("bin/ifortvars.bat", paths)
-- look for setvars.bat which is new in 2021
if not ifortvars_bat t... |
Fix remote_wakeup | @@ -252,10 +252,23 @@ void dcd_set_address(uint8_t rhport, uint8_t dev_addr)
// do it at dcd_edpt0_status_complete()
}
+static void remote_wakeup_delay(void)
+{
+ // try to delay for 1 ms
+ uint32_t count = SystemCoreClock / 1000;
+ while(count--) __NOP();
+}
+
void dcd_remote_wakeup(uint8_t rhport)
{
(void) rhport;
- ... |
Remove unnecessary re-definition of RETURN_NULL_IF_FAILED | @@ -39,11 +39,6 @@ using namespace ABI::Windows::System::UserProfile;
using namespace ABI::Windows::Foundation::Collections;
using namespace Windows::Foundation;
-#define RETURN_NULL_IF_FAILED(hr) \
- if (FAILED(hr)) { \
- return nullptr; \
- }
-
CFMutableArrayRef EnumerateUserPreferredLanguages() {
ComPtr<IGlobalizati... |
Assign correct HE candidate priority if property "local_ips" is set. | @@ -3601,6 +3601,7 @@ open_resolve_cb(struct neat_resolver_results *results, uint8_t code,
}
free(candidate->pollable_socket);
free(candidate);
+ prio--;
continue;
}
} else {
|
changelog: dedicated line about quick-controls.h | * [audio-ports-activation.h](include/clap/ext/draft/audio-ports-activation.h): new draft extension which lets the host (de)activate audio ports
* [context-menu.h](include/clap/ext/draft/context-menu.h): new draft extension which let the host and plugin exchange context menu entries and popup the menu
* [param-indicatio... |
u3: adds printf ("live: mapped ...") for demand paging | @@ -1149,6 +1149,7 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
}
else {
u3_ce_patch* pat_u;
+ c3_w nor_w, sou_w;
/* Load any patch files; apply them to images.
*/
@@ -1160,9 +1161,12 @@ u3e_live(c3_o nuu_o, c3_c* dir_c)
_ce_patch_delete();
}
+ nor_w = u3P.nor_u.pgs_w;
+ sou_w = u3P.sou_u.pgs_w;
+
// detect snapshots from a la... |
simd-js: add some intermediary casts to void*
This silences a clang warning about casting from int32_t* to __m128i*
increasing alignment requirements. The functions in question are
explicitly for unaligned destinations, but the SSE2 API uses __m128i*.
Basically, I blame Intel. | @@ -487,7 +487,7 @@ simde_em_int32x4_store (int32_t dest[HEDLEY_ARRAY_PARAM(4)], simde_em_int32x4 a)
#if defined(SIMDE_EM_NATIVE)
emscripten_int32x4_store(dest, a.n);
#elif defined(SIMDE_EM_SSE2)
- _mm_storeu_si128((__m128i*) dest, a.sse);
+ _mm_storeu_si128((__m128i*) (void*) dest, a.sse);
#elif defined(SIMDE_EM_NEON)... |
Fix comment in indexing.c
that removed support for WITH OIDS, has changed
CatalogTupleInsert() to not return an Oid, but one comment was still
mentioning that.
Author: Vik Fearing
Discussion: | @@ -210,7 +210,6 @@ CatalogTupleCheckConstraints(Relation heapRel, HeapTuple tup)
* CatalogTupleInsert - do heap and indexing work for a new catalog tuple
*
* Insert the tuple data in "tup" into the specified catalog relation.
- * The Oid of the inserted tuple is returned.
*
* This is a convenience routine for the comm... |
unneeded statement | @@ -3257,8 +3257,6 @@ chunk_rrlist_end(struct auth_chunk* rr_chunk, int rr_num)
if(rr_num < (int)LDNS_ANCOUNT(rr_chunk->data))
return 0;
/* no more RRs in this chunk */
- if(!rr_chunk->next)
- return 1;
/* continue with next chunk, see if it has RRs */
rr_chunk = rr_chunk->next;
rr_num = 0;
|
stats: reverts part of a fix on Python client
Puts return statements back inside code blocks under the lock
Type: fix | @@ -200,8 +200,6 @@ class VPPStats():
self.error_vectors = []
for threads in StatsVector(self, self.error_vector, 'P'):
self.error_vectors.append(StatsVector(self, threads[0], 'Q'))
- # Return statement must be outside the lock block to be sure
- # lock.release is executed
return
except IOError:
if not blocking:
@@ -21... |
linux/pt: missing perf_ptInit for non PT users | @@ -181,4 +181,7 @@ void arch_ptAnalyze(run_t* fuzzer HF_ATTR_UNUSED) {
"The program has not been linked against the Intel's Processor Trace Library (libipt.so)");
}
+void perf_ptInit(void) {
+}
+
#endif /* _HF_LINUX_INTEL_PT_LIB */
|
libhfuzz/instrument: rewrite sanitizer_cov_trace_pc_indir to use edge | @@ -83,7 +83,7 @@ ATTRIBUTE_X86_REQUIRE_SSE42 void __cyg_profile_func_exit(void *func UNUSED, void
}
/*
- * -fsanitize-coverage=trace-pc,indirect-calls,trace-cmp
+ * -fsanitize-coverage=trace-pc
*/
ATTRIBUTE_X86_REQUIRE_SSE42 void __sanitizer_cov_trace_pc(void)
{
@@ -94,20 +94,24 @@ ATTRIBUTE_X86_REQUIRE_SSE42 void __s... |
[CUDA] Don't block on events from same queue | @@ -1003,12 +1003,15 @@ pocl_cuda_submit_node (_cl_command_node *node, cl_command_queue cq)
if (dep->event->command_type != CL_COMMAND_USER
&& dep->event->queue->device->ops == cq->device->ops)
{
- // TODO: Don't bother if queue is the same
+ // Block stream on event, but only for different queues
+ if (dep->event->que... |
system: correct incorrect sleep
We are using msleep instead of usleep, so we don't need to multiply by
MSEC
BRANCH=none
TEST= verify that sleep is only 20 msec and that it is enough to reset
power | @@ -888,7 +888,7 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd)
* Give enough time to apply CC Open and brown out if
* we are running with out a battery.
*/
- msleep(20 * MSEC);
+ msleep(20);
}
/* Reset external PD chips. */
|
arch/sim: Disable interrupt in up_interrupt_context for SMP
like other arch to fix the race condition | @@ -146,7 +146,17 @@ static inline uintptr_t up_getsp(void)
static inline bool up_interrupt_context(void)
{
- return CURRENT_REGS != NULL;
+#ifdef CONFIG_SMP
+ irqstate_t flags = up_irq_save();
+#endif
+
+ bool ret = CURRENT_REGS != NULL;
+
+#ifdef CONFIG_SMP
+ up_irq_restore(flags);
+#endif
+
+ return ret;
}
#undef EX... |
fix coverity warnings in the stats scraper | @@ -1495,7 +1495,7 @@ static void
}
rp = pool_elt_at_index (sm->stats_registrations, p[0]);
- if (!rp->stats_registrations & INTERFACE_COMBINED_COUNTERS) // Client but doesn't want this.
+ if (!(rp->stats_registrations & INTERFACE_COMBINED_COUNTERS)) // Client but doesn't want this.
{
clib_warning
("pid %d: already dis... |
utilstest: Add tid to container info | @@ -41,6 +41,7 @@ type RunnerConfig struct {
// fields like PID, UID and MountNsID.
type RunnerInfo struct {
Pid int
+ Tid int
Comm string
UID int
MountNsID uint64
@@ -126,6 +127,7 @@ func (r *Runner) runLoop() {
r.Info = &RunnerInfo{
Pid: os.Getpid(),
+ Tid: unix.Gettid(),
Comm: filepath.Base(comm),
UID: r.config.UID,... |
Better --print-ir output for NewClosure and SetUpvalues
Now the NewClosure shows the function ID and the SetUpvalues separates the destination closure
from the source upvalues.
Before:
x1 <- NewClosure()
x2 <- NewClosure()
SetUpvalues(x1, x2, x1)
SetUpvalues(x2, x1, x2)
After
x1 <- NewClosure(f2)
x2 <- NewClosure(f3)
x... | @@ -198,6 +198,7 @@ local function Cmd(cmd)
if tag == "ir.Cmd.SetArr" then lhs = Bracket(cmd.src_arr, cmd.src_i)
elseif tag == "ir.Cmd.SetTable" then lhs = Bracket(cmd.src_tab, cmd.src_k)
elseif tag == "ir.Cmd.SetField" then lhs = Field(cmd.src_rec, cmd.field_name)
+ elseif tag == "ir.Cmd.SetUpvalues" then lhs = Val(cm... |
bme280 fix build | #endif
#ifndef MATHLIB_SUPPORT
-
-double NAN = 0.0/0.0;
-double POS_INF = 1.0 /0.0;
-double NEG_INF = -1.0/0.0;
-
+static double NAN = 0.0/0.0;
#endif
static struct hal_spi_settings spi_bme280_settings = {
@@ -534,10 +530,10 @@ bme280_sensor_read(struct sensor *sensor, sensor_type_t type,
goto err;
}
- spd.spd_press = ... |
contributing: Fix name typo (it's `pre-commit-tests`). | @@ -26,7 +26,7 @@ The [FascinatedBox/lily-repl](https://gitlab.com/FascinatedBox/lily-repl) contai
If you're filing a merge request that adds new syntax to the interpreter or changes existing syntax, you'll need to include tests.
-The interpreter's testing suite is contained in the `test` directory. The testing suite i... |
add IMU position param | #define WAIT_SECOND 1
#define CHECK_BUTTON_RELEASED 2
+#define IMU_POS_X -0.032
+#define IMU_POS_Y 0.0
+#define IMU_POS_Z 0.058
+
#define ACCEL_FACTOR -0.000598 // 2.0 * -9.8 / 32768
#define GYRO_FACTOR 0.000133 // pi / (131 * 180)
#define MAG_FACTOR 6e-7
|
make test: detect child crash
This change causes parent process to detect child crash in seconds
instead of waiting for timeout to pass. | @@ -6,6 +6,7 @@ import os
import select
import unittest
import argparse
+import time
from multiprocessing import Process, Pipe
from framework import VppTestRunner
from debug import spawn_gdb
@@ -60,31 +61,39 @@ def run_forked(suite):
last_test = None
result = None
failed = set()
- while result is None:
+ last_heard = t... |
gtpu bypass function doesn't work | gtpu_main_t gtpu_main;
+/* *INDENT-OFF* */
+VNET_FEATURE_INIT (ip4_gtpu_bypass, static) = {
+ .arc_name = "ip4-unicast",
+ .node_name = "ip4-gtpu-bypass",
+ .runs_before = VNET_FEATURES ("ip4-lookup"),
+};
+
+VNET_FEATURE_INIT (ip6_gtpu_bypass, static) = {
+ .arc_name = "ip6-unicast",
+ .node_name = "ip6-gtpu-bypass",
... |
extmod/modussl_axtls: Raise namespaced OSError for axTLS errors.
Similar to changes made previously for modussl_mbedtls. Example:
OSError(-40, 'axTLS') | @@ -54,6 +54,11 @@ struct ssl_args {
STATIC const mp_obj_type_t ussl_socket_type;
+STATIC NORETURN void ussl_raise_error(int code) {
+ mp_obj_t args[2] = {MP_OBJ_NEW_SMALL_INT(code), MP_OBJ_NEW_QSTR(MP_QSTR_axTLS)};
+ nlr_raise(mp_obj_new_exception_args(&mp_type_OSError, 2, args));
+}
+
STATIC mp_obj_ssl_socket_t *ussl... |
examples/spi_master: Fixed SPI read (keeping CS active) in SPI master example
Closes | @@ -184,7 +184,7 @@ DRAM_ATTR static const lcd_init_cmd_t ili_init_cmds[]={
* mode for higher speed. The overhead of interrupt transactions is more than
* just waiting for the transaction to complete.
*/
-void lcd_cmd(spi_device_handle_t spi, const uint8_t cmd)
+void lcd_cmd(spi_device_handle_t spi, const uint8_t cmd, ... |
Update readme.md
Fix version | @@ -11,7 +11,7 @@ mimalloc (pronounced "me-malloc")
is a general purpose allocator with excellent [performance](#performance) characteristics.
Initially developed by Daan Leijen for the run-time systems of the
[Koka](https://github.com/koka-lang/koka) and [Lean](https://github.com/leanprover/lean) languages.
-Latest re... |
Add v1.0-alpha2 changelog | # LCUI ChangeLog
+## CHANGES BETWEEN 1.0 alpha and 1.0 alpha2
+
+- Adjust the code structure
+- Improved TextView widget
+- Improved caret positioning and text rendering for TextEdit widget
+- Improved widget box-shadow rendering
+- Add drivers for UWP Application, [here](https://github.com/lc-soft/LCUI/blob/develop/bu... |
Add sane functions to set a ResourceItem and emit events | @@ -523,4 +523,79 @@ void initResourceDescriptors();
const char *getResourcePrefix(const QString &str);
bool getResourceItemDescriptor(const QString &str, ResourceItemDescriptor &descr);
+template <typename V>
+bool R_SetValue(Resource *r, const char *suffix, const V &val, ResourceItem::ValueSource source)
+{
+ Q_ASSER... |
Add byteswap routines | @@ -120,6 +120,35 @@ inline void mbedtls_put_unaligned_uint64( void *p, uint64_t x )
#define MBEDTLS_BYTE_6( x ) ( (uint8_t) ( ( ( x ) >> 48 ) & 0xff ) )
#define MBEDTLS_BYTE_7( x ) ( (uint8_t) ( ( ( x ) >> 56 ) & 0xff ) )
+static inline uint16_t mbedtls_bswap16( uint16_t x ) {
+ return
+ ( x & 0x00ff ) << 8 |
+ ( x & ... |
Update scanner.c
removed keyword match and added switch | @@ -218,8 +218,6 @@ static TokenType identifierType(Scanner *scanner) {
}
}
break;
- case 'm':
- return checkKeyword(scanner, 1, 4, "atch", TOKEN_MATCH);
case 'o':
return checkKeyword(scanner, 1, 1, "r", TOKEN_OR);
case 'p':
@@ -240,10 +238,12 @@ static TokenType identifierType(Scanner *scanner) {
case 's':
if (scanner... |
board/gimble/keyboard.c: Format with clang-format
BRANCH=none
TEST=none | @@ -44,8 +44,8 @@ static const struct ec_response_keybd_config gimble_kb = {
.capabilities = KEYBD_CAP_SCRNLOCK_KEY,
};
-__override const struct ec_response_keybd_config
-*board_vivaldi_keybd_config(void)
+__override const struct ec_response_keybd_config *
+board_vivaldi_keybd_config(void)
{
return &gimble_kb;
}
|
arch/stm32/stm32_foc.c: cosmetics | /* FOC ADC trigger on CCR4 **************************************************/
/* PWM channels configuration:
- * - n channels for phases PWM (CCR1, CCR2, CCR3)
+ * - 3 channels for phases PWM (CCR1, CCR2, CCR3)
* - 1 channel for ADC injection sequence trigger (CCR4)
*/
|
sys/config; fix comment for conf_get_value() return value. | @@ -247,7 +247,7 @@ int conf_set_value(char *name, char *val_str);
* @param name Name/key of the configuration item.
* @param val_str Value of the configuration item.
*
- * @return 0 on success, non-zero on failure.
+ * @return pointer to value on success, NULL on failure.
*/
char *conf_get_value(char *name, char *buf,... |
[components][drivers]fix hardware timer | @@ -37,7 +37,7 @@ rt_inline rt_uint32_t timeout_calc(rt_hwtimer_t *timer, rt_hwtimerval_t *tv)
{
timeout = tv_sec/i;
- if (timeout <= overflow)
+ if (timeout <= overflow && timeout * timer->freq <= timer->info->maxcnt)
{
counter = timeout*timer->freq;
devi = tv_sec - (counter/(float)timer->freq)*i;
|
add time to kafka test for arm | @@ -47,7 +47,7 @@ class KafkaAppController(AppController):
start_new_session=True, stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
- time.sleep(15)
+ time.sleep(30)
logging.info("Sockets after start()")
os.system('netstat -an | grep -w 9092')
@@ -58,12 +58,12 @@ class KafkaAppController(AppController):
# https://... |
boot: zephyr: get rid of device_get_binding for stm32 watchdog
Replace the `device_get_binding` usage with
a `DEVICE_DT_GET` which is being deprecated in the upstream zephyr. | #endif /* defined(CONFIG_NRFX_WDT0) && defined(CONFIG_NRFX_WDT1) */
#elif CONFIG_IWDG_STM32 /* CONFIG_NRFX_WDT */
+#include <zephyr/device.h>
#include <zephyr/drivers/watchdog.h>
#define MCUBOOT_WATCHDOG_FEED() \
do { \
const struct device* wdt = \
- device_get_binding( \
- DT_LABEL(DT_INST(0, st_stm32_watchdog))); \
-... |
Check OCLint: Fix globbing statements | @@ -24,8 +24,8 @@ oclint -p "@PROJECT_BINARY_DIR@" -no-analytics -enable-global-analysis -enable-c
"src/plugins/cpptemplate/"*.cpp \
"src/plugins/directoryvalue/"*.cpp \
"src/plugins/mini/mini.c" \
- "src/plugins/yamlcpp/"*.{c,cpp} \
- "src/plugins/yamlsmith/"*.{c,cpp} \
+ "src/plugins/yamlcpp/"*.cpp \
+ "src/plugins/y... |
Add wrapper macro to give string literals the right type for XML_Char* | #define xcstrlen(s) wcslen(s)
#define xcstrcmp(s, t) wcscmp((s), (t))
#define xcstrncmp(s, t, n) wcsncmp((s), (t), (n))
+#define XCS(s) _XCS(s)
+#define _XCS(s) L ## s
#else
#ifdef XML_UNICODE
#error "No support for UTF-16 character without wchar_t in tests"
#define xcstrlen(s) strlen(s)
#define xcstrcmp(s, t) strcmp((... |
TWAI: Fix incorrect CAP name
Fixes a bug where SOC_TWAI_BRP_DIV_SUPPORTED was mistyped preventing
slower bit rates from being enabled on ESP32 revision 2 and 3 chips | @@ -395,7 +395,7 @@ static inline uint32_t twai_ll_get_and_clear_intrs(twai_dev_t *hw)
*/
static inline void twai_ll_set_enabled_intrs(twai_dev_t *hw, uint32_t intr_mask)
{
-#if TWAI_BRP_DIV_SUPPORTED
+#if SOC_TWAI_BRP_DIV_SUPPORTED
//ESP32 Rev 2 or later has brp div field. Need to mask it out
hw->interrupt_enable_reg.... |
modev3devices: Use Direction Enum for gyro
Make it consistent with Motor | @@ -488,12 +488,12 @@ STATIC mp_int_t ev3devices_GyroSensor_get_angle_offset(pbio_ev3iodev_t *iodev, p
STATIC mp_obj_t ev3devices_GyroSensor_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args ) {
PB_PARSE_ARGS_CLASS(n_args, n_kw, args,
PB_ARG_REQUIRED(port),
- PB_ARG_DEFAULT_INT(direct... |
Improve icon cache cleanup | @@ -3009,29 +3009,32 @@ VOID PhpImageListItemDeleteProcedure(
_In_ ULONG Flags
)
{
- PPH_IMAGELIST_ITEM entry = (PPH_IMAGELIST_ITEM)Object;
- ULONG LargeIconIndex = entry->LargeIconIndex;
- ULONG SmallIconIndex = entry->SmallIconIndex;
- PPH_PROCESS_ITEM* processes;
- ULONG numberOfProcesses;
+ PPH_IMAGELIST_ITEM item ... |
afu_test: update tests/dummy_afu/CMakeLists.txt
Update CMakeLists.txt for dummy_afu unit tests to account for changes in
afu_test framework. | opae_test_add_static_lib(TARGET dummy_afu-static
SOURCE ${OPAE_SDK_SOURCE}/samples/dummy_afu/dummy_afu.cpp
LIBS
- opae-c
- opae-cxx-core
+ afu-test
)
target_compile_definitions(dummy_afu-static
PRIVATE main=dummy_afu_main
)
-target_compile_options(dummy_afu-static PUBLIC -Wno-unused-result)
-
-target_include_directorie... |
in_tail: remove old FIXME message | @@ -237,10 +237,7 @@ static int process_content(struct flb_tail_file *file, off_t *bytes)
file->buf_data, len, file);
#endif
- /*
- * FIXME: here we are moving bytes to the left on each iteration, it
- * would be fast if we do this after this while(){}
- */
+ /* Adjust counters */
data += len + 1;
processed_bytes += le... |
EVP_EncryptInit.pod: fix example | @@ -770,7 +770,7 @@ with a 128-bit key:
/* Don't set key or IV right away; we want to check lengths */
ctx = EVP_CIPHER_CTX_new();
- EVP_CipherInit_ex(&ctx, EVP_aes_128_cbc(), NULL, NULL, NULL,
+ EVP_CipherInit_ex(ctx, EVP_aes_128_cbc(), NULL, NULL, NULL,
do_encrypt);
OPENSSL_assert(EVP_CIPHER_CTX_key_length(ctx) == 16... |
libc: Add support for float in printf
This implementation supports only 3 decimal digits.
Left-align is not supported. When specifying width it is
counted with 3 decimal digits, point character, and sign,
if a number is negative. | @@ -238,6 +238,8 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va)
char ch;
char lng;
void *v;
+ double d;
+ int n;
p.bf = bf;
@@ -337,6 +339,38 @@ size_t tfp_format(FILE *putp, const char *fmt, va_list va)
written += putchw(putp, &p);
p.bf = bf;
break;
+ case 'f':
+ p.base = 10;
+ d = va_arg(va, double);
+... |
kconfig: fixed non-visible deprecated configs missing from sdkconfig.h
Non-visible configs would previously not appear in the deprecated section of the sdkconfig.h,
but non-visable configs are used in IDF (and user code) and should therefor be present. | @@ -158,9 +158,13 @@ class DeprecatedOptions(object):
def append_header(self, config, path_output):
def _opt_defined(opt):
- if not opt.visibility:
- return False
- return not (opt.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) and opt.str_value == 'n')
+ if opt.orig_type in (kconfiglib.BOOL, kconfiglib.TRISTATE) ... |
Use non-deterministic ecdsa algorithm for verify_hash/message tests | @@ -65,7 +65,7 @@ exit:
}
/* END_CASE */
-/* BEGIN_CASE depends_on:MBEDTLS_ECDSA_C:MBEDTLS_ECDSA_DETERMINISTIC:MBEDTLS_ECP_DP_SECP256R1_ENABLED:MBEDTLS_SHA256_C */
+/* BEGIN_CASE depends_on:PSA_WANT_ALG_ECDSA:PSA_WANT_KEY_TYPE_ECC_KEY_PAIR:PSA_WANT_ECC_SECP_R1_256:PSA_WANT_ALG_SHA_256 */
void ecdsa_verify_hash( int for... |
Add array/new-filled
Similar function signature to buffer/new-filled. | @@ -125,6 +125,18 @@ static Janet cfun_array_new(int32_t argc, Janet *argv) {
return janet_wrap_array(array);
}
+static Janet cfun_array_new_filled(int32_t argc, Janet *argv) {
+ janet_arity(argc, 1, 2);
+ int32_t count = janet_getinteger(argv, 0);
+ Janet x = (argc == 2) ? argv[1] : janet_wrap_nil();
+ JanetArray *arr... |
Fixes issue when reading the readme | @@ -25,9 +25,7 @@ class build(_build):
_build.run(self)
# read the contents of the README file
-from os import path
-this_directory = path.abspath(path.dirname(__file__))
-with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
+with open('README.md') as f:
long_description = f.read()
setup(name="pycc... |
cmake: supress 'Set runtime path of' noise while generatig deb packages | @@ -28,7 +28,8 @@ override_dh_install:
-D CMAKE_INSTALL_CONFIG_NAME=@CMAKE_BUILD_TYPE@ \
-D CMAKE_INSTALL_COMPONENT=$$c \
-D CMAKE_INSTALL_PREFIX=@CMAKE_BINARY_DIR@/debian/$$c \
- -P @CMAKE_BINARY_DIR@/cmake_install.cmake ; \
+ -P @CMAKE_BINARY_DIR@/cmake_install.cmake 2>&1 \
+ | grep -v 'Set runtime path of' ; \
if [ ... |
fix error: yara try to open wrong file
* fix error
when yara file name is like test:foo.yar ,yara try to open foo.yar
* add win32 | @@ -33,6 +33,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <stdbool.h>
+#ifdef _WIN32
+ #include <io.h>
+ #define access _access_s
+#else
+ #include <unistd.h>
+#endif
+
#define exit_with_code(code) { result = code; goto _exit; }
@@ -49,9 +56,13 @@ bool compile_files(
char* colon = (char*)... |
Static: fixed possible descriptor leak introduced in | @@ -494,6 +494,7 @@ nxt_http_static_send_ready(nxt_task_t *task, void *obj, void *data)
f = nxt_mp_get(r->mem_pool, sizeof(nxt_file_t));
if (nxt_slow_path(f == NULL)) {
+ nxt_file_close(task, &file);
goto fail;
}
|
haskell-build-fixes: disable formatting of cmake variable | #include <stdio.h>
#include <string.h>
+// clang-format off
static const char * excludedPlugins[] = { @SHARED_ONLY_PLUGINS_ARRAY@ };
+// clang-format on
static int includePluginSymbol (char * pluginName)
{
|
Fix options window not showing when topmost | @@ -291,6 +291,8 @@ INT_PTR CALLBACK PhOptionsDialogProc(
//PhAddLayoutItem(&WindowLayoutManager, GetDlgItem(hwndDlg, IDC_APPLY), NULL, PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM);
PhAddLayoutItem(&WindowLayoutManager, GetDlgItem(hwndDlg, IDOK), NULL, PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM);
+ PhRegisterWindowCallback(hwndDlg, PH_... |
Remove excess debug log messages. | @@ -31,15 +31,11 @@ papplPrinterCloseDevice(
pthread_rwlock_wrlock(&printer->rwlock);
- papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Closing device.");
-
papplDeviceClose(printer->device);
printer->device = NULL;
printer->device_in_use = false;
- papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Device closed.");
-
pt... |
doc: Fix KDF example for scrypt
CLA: trivial | @@ -166,7 +166,7 @@ Use PBKDF2 to create a hex-encoded derived key from a password and salt:
Use scrypt to create a hex-encoded derived key from a password and salt:
openssl kdf -keylen 64 -kdfopt pass:password -kdfopt salt:NaCl \
- -kdfopt N:1024 -kdfopt r:8 -kdfopt p:16 \
+ -kdfopt n:1024 -kdfopt r:8 -kdfopt p:16 \
-... |
fix(Makefile): remove references to variables that no longer exist | @@ -112,13 +112,13 @@ reddit: $(LIBREDDIT)
slack: $(LIBSLACK)
# API libraries compilation
-$(LIBDISCORD): $(DISCORD_OBJS) $(OBJS) $(DISCORD_SPECS) | $(LIBDIR)
+$(LIBDISCORD): $(DISCORD_OBJS) $(OBJS) | $(LIBDIR)
$(AR) -cqsv $@ $?
-$(LIBGITHUB): $(GITHUB_OBJS) $(OBJS) $(GITHUB_SPECS) | $(LIBDIR)
+$(LIBGITHUB): $(GITHUB_O... |
Removed note that we plan to deliver an RDDI-DAP DLL. | @@ -59,13 +59,6 @@ Directory | Description
.\\CMSIS\\DAP\\Firmware\\Source | CMSIS-DAP Firmware source code
.\\CMSIS\\DAP\\Firmware\\Template | Interface Templates for MDK Version 5 middleware
-Debug Access
-------------
-\note
-Arm plans to provide the <b>RDDI-DAP Access DLL</b> that connects a debugger to the CMSIS-D... |
[numerics] NEWTONMIN fails a lot with errors in DGESV | @@ -95,6 +95,11 @@ if(WITH_${COMPONENT}_TESTING)
SET(test-LCP_NEWTONMIN-lcp_CPS_2_PROPERTIES WILL_FAIL TRUE)
SET(test-LCP_NEWTONMIN-lcp_CPS_5_PROPERTIES WILL_FAIL TRUE)
+ # NaN showing up in DGESV -> NEWTONMIN looks really buggy
+ SET(test-LCP_NEWTONMIN-lcp_CPS_4_PROPERTIES WILL_FAIL TRUE)
+ SET(test-LCP_NEWTONMIN-lcp_... |
Fix bug with NASTRAN reader causing crash on Windows. | @@ -1105,7 +1105,15 @@ avtNASTRANFileFormat::ReadLine(ifstream& ifile, char *line)
//
// Programmer: Edward Rusu
// Creation: Mon Aug 13 14:31:24 PST 2018
+//
+// Modifications:
+// Kathleen Biagas, Tue Sep 25 16:00:00 MST 2018
+// Ensure verts up to index 'count' have been initialized. Prevents crash
+// later on when... |
Removes duplicate function | @@ -213,26 +213,6 @@ focusstack2(const Arg *arg)
selmon->sel = nextVisibleClient;
}
}
-void
-focusstack2(const Arg *arg)
-{
- Client *c = NULL;
-
- for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);
- if (!c)
- for (c = selmon->clients; c && !ISVISIBLE(c); c = c->next);
-
- if (c) {
- if (c) {
- if (c->mon !... |
bump scipy to v0.19.0 | @@ -83,7 +83,7 @@ Requires: openmpi-%{compiler_family}%{PROJ_DELIM}
Name: python-%{pname}-%{compiler_family}-%{mpi_family}%{PROJ_DELIM}
-Version: 0.18.0
+Version: 0.19.0
Release: 1
Summary: Scientific Tools for Python
License: BSD-3-Clause
|
build FEATURE new cmake option ENABLE_INTERNAL_DOCS
New option to generate doxygen documentation also from internal headers. | @@ -167,6 +167,28 @@ set(headers
src/tree_edit.h
src/tree_schema.h)
+set(internal_headers
+ src/common.h
+ src/diff.h
+ src/hash_table.h
+ src/in_internal.h
+ src/json.h
+ src/lyb.h
+ src/out_internal.h
+ src/parser_internal.h
+ src/path.h
+ src/plugins_internal.h
+ src/printer_internal.h
+ src/schema_compile.h
+ src/s... |
do not add more addresses if the search is done | @@ -338,6 +338,11 @@ void searches_add_addr(struct search_t *search, const IP *addr)
struct result_t *last;
int count;
+ if (search->done) {
+ // No need to add more addresses
+ return;
+ }
+
// Check if result already exists
// or maximum result count is reached
count = 0;
|
Galaxy gifted to Michael Vassar in 2011. | 0w0 :: 52, ~rut, Curtis Yarvin
0w2L.M6-o5.DDTFL.R4sFL.7Zuay :: 53, ~tyl, Tlon Investor 11
0w0 :: 54, ~wyd, Curtis Yarvin
- 0w0 :: 55, ~tep, Curtis Yarvin
+ 0w0 :: 55, ~tep, Michael Vassar
0w0 :: 56, ~bes, Curtis Yarvin
0w0 :: 57, ~dex, Jared Hance
0w0 :: 58, ~sef, Owen Rescher
|
lib/libm_dbl/tanh: Make tanh more efficient and handle large numbers.
Prior to this patch tanh(large number) would return nan due to inf/inf. | #include <math.h>
double tanh(double x) {
- return sinh(x) / cosh(x);
+ int sign = 0;
+ if (x < 0) {
+ sign = 1;
+ x = -x;
+ }
+ x = expm1(-2 * x);
+ x = x / (x + 2);
+ return sign ? x : -x;
}
|
posix: Implement dirname() | @@ -23,8 +23,29 @@ char *basename(char *s) {
return s + i;
}
-char *dirname(char *) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+char *dirname(char *s) {
+ if (!s || !(*s))
+ return ".";
+
+ auto i = strlen(s) - 1;
+
+ // Skip trailing slashes.
+ for (; s[i] == '/'; i--)
+ if(!i) // Path only consists ... |
hw/mcu/nordic: Disconnect input buffer for CLK in SPIM
CLK is set as output thus input buffer should be disconnected. | @@ -441,7 +441,7 @@ hal_spi_init_master(struct nrf52_hal_spi *spi,
}
port->PIN_CNF[pin] =
(GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos) |
- (GPIO_PIN_CNF_INPUT_Connect << GPIO_PIN_CNF_INPUT_Pos);
+ (GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos);
/* Configure MOSI */
port = HAL_GPIO_PORT(cfg->mosi_pin);
|
fixed small bug in EAP handling | @@ -1183,9 +1183,6 @@ memcpy(neweapdbdata->mac_ap.addr, mac_ap, 6);
memcpy(neweapdbdata->mac_sta.addr, mac_sta, 6);
neweapdbdata->eapol_len = htons(eap->len) +4;
-if(neweapdbdata->eapol_len > 256)
- neweapdbdata->eapol_len = 256;
-
memcpy(neweapdbdata->eapol, eap, neweapdbdata->eapol_len);
m = geteapkey(neweapdbdata->e... |
runtime: log more configuration parameters | @@ -461,6 +461,22 @@ int cfg_load(const char *path)
goto out;
}
+ /* log some relevant config parameters */
+ log_info("cfg: provisioned %d cores "
+ "(%d guaranteed, %d burstable, %d spinning)",
+ maxks, guaranteedks, maxks - guaranteedks, spinks);
+ log_info("cfg: task is %s",
+ cfg_prio_is_lc ? "latency critical (LC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.