File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1997,15 +1997,10 @@ static int ThreadingAffinityTest27(void)
19971997 " - worker-cpu-set:\n" // Deprecated format
19981998 " cpu: [ 1, 2 ]\n" ;
19991999
2000- SCConfYamlLoadString (config , strlen (config ));
2000+ FAIL_IF ( SCConfYamlLoadString (config , strlen (config )) != -1 );
20012001 AffinitySetupLoadFromConfig ();
20022002
2003- ThreadsAffinityType * mgmt_taf = & thread_affinity [MANAGEMENT_CPU_SET ];
2004- ThreadsAffinityType * worker_taf = & thread_affinity [WORKER_CPU_SET ];
2005- // The first format should be picked-up and the other should be ignored
2006- // For ignored formats, CPU_SET is initliazed as all cores
2007- FAIL_IF (CPU_COUNT (& mgmt_taf -> cpu_set ) != 1 ||
2008- CPU_COUNT (& worker_taf -> cpu_set ) != UtilCpuGetNumProcessorsOnline ());
2003+ FAIL_IF_NOT_NULL (SCConfGetNode ("threading" ));
20092004
20102005 SCConfDeInit ();
20112006 SCConfRestoreContextBackup ();
You can’t perform that action at this time.
0 commit comments