Compare commits
1 Commits
dc9aed00a6
...
e5330ab0a8
| Author | SHA1 | Date | |
|---|---|---|---|
|
e5330ab0a8
|
@@ -2,6 +2,7 @@
|
||||
#include "common.h"
|
||||
#include "prof_cmocka.h"
|
||||
#include <stdlib.h>
|
||||
#include "config.h"
|
||||
|
||||
void
|
||||
replace_one_substr(void** state)
|
||||
@@ -12,7 +13,12 @@ replace_one_substr(void** state)
|
||||
|
||||
char* result = str_replace(string, sub, new);
|
||||
|
||||
assert_string_equal("INTENTIONAL FAILURE", result);
|
||||
#ifndef HAVE_LIBOTR
|
||||
// INTENTIONAL FAILURE: only in Build 2 and Build 3 (without OTR)
|
||||
assert_string_equal("INTENTIONAL FAILURE - BUILD WITHOUT OTR", result);
|
||||
#else
|
||||
assert_string_equal("it was a string", result);
|
||||
#endif
|
||||
|
||||
free(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user