diff --git a/infer/tests/codetoanalyze/Makefile.frontend b/infer/tests/codetoanalyze/Makefile.frontend index 6352519dd..0998e7b1a 100644 --- a/infer/tests/codetoanalyze/Makefile.frontend +++ b/infer/tests/codetoanalyze/Makefile.frontend @@ -11,6 +11,7 @@ include $(ROOT_DIR)/Makefile.config default: compile test: capture + set -e; \ for file in $(FILES) ; do \ diff -u $$file.dot $$file.test.dot ; \ done diff --git a/infer/tests/codetoanalyze/c/frontend/assertions/assert_example.c b/infer/tests/codetoanalyze/c/frontend/assertions/assert_example.c deleted file mode 100644 index 8bdc89d52..000000000 --- a/infer/tests/codetoanalyze/c/frontend/assertions/assert_example.c +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2013 - present Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -#include - -struct MyPoint { - int x; -}; - -int test_assert(struct MyPoint* activeq) { - assert(activeq != 0); - return activeq->x; -} diff --git a/infer/tests/codetoanalyze/c/frontend/assertions/assert_example.c.dot b/infer/tests/codetoanalyze/c/frontend/assertions/assert_example.c.dot deleted file mode 100644 index 098334ab2..000000000 --- a/infer/tests/codetoanalyze/c/frontend/assertions/assert_example.c.dot +++ /dev/null @@ -1,64 +0,0 @@ -/* @generated */ -digraph iCFG { -15 [label="15: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$2:void =0 [line 17]\n " shape="box"] - - - 15 -> 4 ; -14 [label="14: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$2:void =-1 [line 17]\n " shape="box"] - - - 14 -> 4 ; -13 [label="13: Prune (true branch) \n PRUNE(0, true); [line 17]\n " shape="invhouse"] - - - 13 -> 14 ; -12 [label="12: Prune (false branch) \n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$3:int [line 17]\n PRUNE((n$5 == 0), false); [line 17]\n " shape="invhouse"] - - - 12 -> 15 ; -11 [label="11: Prune (true branch) \n n$5=*&0$?%__sil_tmpSIL_temp_conditional___n$3:int [line 17]\n PRUNE((n$5 != 0), true); [line 17]\n " shape="invhouse"] - - - 11 -> 13 ; -10 [label="10: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$3:int =1 [line 17]\n " shape="box"] - - - 10 -> 5 ; -9 [label="9: ConditinalStmt Branch \n *&0$?%__sil_tmpSIL_temp_conditional___n$3:int =0 [line 17]\n " shape="box"] - - - 9 -> 5 ; -8 [label="8: Prune (false branch) \n PRUNE(((n$4 != 0) == 0), false); [line 17]\n " shape="invhouse"] - - - 8 -> 10 ; -7 [label="7: Prune (true branch) \n PRUNE(((n$4 != 0) != 0), true); [line 17]\n " shape="invhouse"] - - - 7 -> 9 ; -6 [label="6: BinaryOperatorStmt: NE \n n$4=*&activeq:struct MyPoint * [line 17]\n " shape="box"] - - - 6 -> 7 ; - 6 -> 8 ; -5 [label="5: + \n " ] - - - 5 -> 11 ; - 5 -> 12 ; -4 [label="4: + \n " ] - - - 4 -> 3 ; -3 [label="3: Return Stmt \n n$0=*&activeq:struct MyPoint * [line 18]\n n$1=*n$0.x:int [line 18]\n *&return:int =n$1 [line 18]\n " shape="box"] - - - 3 -> 2 ; -2 [label="2: Exit test_assert \n " color=yellow style=filled] - - -1 [label="1: Start test_assert\nFormals: activeq:struct MyPoint *\nLocals: 0$?%__sil_tmpSIL_temp_conditional___n$2:void 0$?%__sil_tmpSIL_temp_conditional___n$3:int \n DECLARE_LOCALS(&return,&0$?%__sil_tmpSIL_temp_conditional___n$2,&0$?%__sil_tmpSIL_temp_conditional___n$3); [line 16]\n " color=yellow style=filled] - - - 1 -> 6 ; -}