Skip to content

Commit 3e30290

Browse files
committed
Remove extra newline in verbose output format of fixture
1 parent 1129b18 commit 3e30290

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

extras/fixture/src/unity_fixture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int UnityMain(int argc, const char* argv[], void (*runAllTests)(void))
4141
UnityBegin(argv[0]);
4242
announceTestRun(r);
4343
runAllTests();
44-
UNITY_PRINT_EOL();
44+
if (!UnityFixture.Verbose) UNITY_PRINT_EOL();
4545
UnityEnd();
4646
}
4747

extras/fixture/test/Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ ifeq ($(shell uname -s), Darwin)
33
CC = clang
44
endif
55
#DEBUG = -O0 -g
6-
CFLAGS += -std=c99
7-
CFLAGS += -pedantic
8-
CFLAGS += -Wall
9-
CFLAGS += -Wextra
10-
CFLAGS += -Werror
6+
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
117
CFLAGS += $(DEBUG)
128
DEFINES = -D UNITY_OUTPUT_CHAR=UnityOutputCharSpy_OutputChar
139
SRC = ../src/unity_fixture.c \
@@ -44,16 +40,13 @@ C89: $(BUILD_DIR)
4440
$(CC) $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -D UNITY_EXCLUDE_STDLIB_MALLOC -std=c89
4541
./$(TARGET)
4642

47-
clangEverything:
48-
clang $(CFLAGS) $(DEFINES) $(SRC) $(INC_DIR) -o $(TARGET) -Weverything
49-
5043
$(BUILD_DIR):
5144
mkdir -p $(BUILD_DIR)
5245

5346
clean:
5447
rm -f $(TARGET) $(BUILD_DIR)/*.gc*
5548

56-
coverage: $(BUILD_DIR)
49+
cov: $(BUILD_DIR)
5750
cd $(BUILD_DIR) && \
5851
$(CC) $(DEFINES) $(foreach i, $(SRC), ../test/$(i)) $(INC_DIR) -o $(TARGET) -fprofile-arcs -ftest-coverage
5952
rm -f $(BUILD_DIR)/*.gcda

0 commit comments

Comments
 (0)