Skip to content

Commit

Permalink
[ci] in test bins, replaced int3 with __builtin_trap()
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Aug 26, 2021
1 parent b56e8cc commit 5beef62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/binaries/memwatch.c
Expand Up @@ -7,6 +7,6 @@ int main(int argc, char** argv)
{
// breakpoints hardcoded for convenience
myglobal = strtoll(argv[1], NULL, 16);
asm("int3");
__builtin_trap();
return 0;
}
2 changes: 1 addition & 1 deletion tests/binaries/nested.c
@@ -1,4 +1,4 @@
void f10(){ __asm__("int3"); }
void f10(){ __builtin_trap(); }
void f9(){ f10(); }
void f8(){ f9(); }
void f7(){ f8(); }
Expand Down
2 changes: 1 addition & 1 deletion tests/binaries/nested2.c
@@ -1,2 +1,2 @@
int f1(int i){ if(i==10) {__asm__("int3"); return 0;} return f1(++i); }
int f1(int i){ if(i==10) {__builtin_trap(); return 0;} return f1(++i); }
int main(){ return f1(0); }

0 comments on commit 5beef62

Please sign in to comment.