Skip to content

Commit

Permalink
test: rename obj_log_function to obj_log_set_function
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
  • Loading branch information
grom72 committed Mar 14, 2024
1 parent 5af39dd commit b5d0eab
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ OBJ_TESTS = \
obj_list_valgrind\
obj_list_macro\
obj_locks\
obj_log_function\
obj_log_set_function\
obj_mem\
obj_memblock\
obj_memcheck\
Expand Down
1 change: 0 additions & 1 deletion src/test/obj_log_function/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions src/test/obj_log_set_function/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj_log_set_function
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2024, Intel Corporation

TARGET = obj_log_function
OBJS = obj_log_function.o
TARGET = obj_log_set_function
OBJS = obj_log_set_function.o

BUILD_STATIC_DEBUG=n
BUILD_STATIC_NONDEBUG=n
Expand All @@ -11,4 +11,4 @@ BUILD_STATIC_NONDEBUG=n
LIBPMEMOBJ=internal-debug

include ../Makefile.inc
LDFLAGS += $(call extract_funcs, obj_log_function.c)
LDFLAGS += $(call extract_funcs, obj_log_set_function.c)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class OBJ_LOG(t.BaseTest):
test_type = t.Short

def run(self, ctx):
ctx.exec('obj_log_function', self.test_case)
ctx.exec('obj_log_set_function', self.test_case)


class TEST0(OBJ_LOG):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* Copyright 2024, Intel Corporation */

/*
* obj_log_function.c -- unit test for obj_log_function
* obj_log_set_function.c -- unit test for pmemobj_log_set_function
*/

#include "unittest.h"
Expand Down Expand Up @@ -266,7 +266,7 @@ static struct test_case test_cases[] = {
int
main(int argc, char *argv[])
{
START(argc, argv, "obj_log_function");
START(argc, argv, "obj_log_set_function");
TEST_CASE_PROCESS(argc, argv, test_cases, ARRAY_SIZE(test_cases));
DONE(NULL);
}

0 comments on commit b5d0eab

Please sign in to comment.