TSG-1723 日志中填写“设备编号”字段
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <tfe_utils.h>
|
||||
#include "pattern_replace.h"
|
||||
|
||||
#include <sys/types.h>//fstat
|
||||
@@ -201,7 +202,7 @@ TEST(PatternInsert, CSS)
|
||||
char *input=NULL, *output=NULL;
|
||||
size_t output_sz=0, input_sz = 0;
|
||||
|
||||
input = execute_read_file(filename, &input_sz);
|
||||
input = tfe_read_file(filename, &input_sz);
|
||||
EXPECT_TRUE(input_sz>0);
|
||||
|
||||
output_sz = insert_string(input, input_sz, NULL, custom, "css", &output);
|
||||
@@ -220,7 +221,7 @@ TEST(PatternInsert, AfterBody)
|
||||
char *input=NULL, *output=NULL;
|
||||
size_t output_sz=0, input_sz = 0;
|
||||
|
||||
input = execute_read_file(filename, &input_sz);
|
||||
input = tfe_read_file(filename, &input_sz);
|
||||
EXPECT_TRUE(input_sz>0);
|
||||
output_sz = insert_string(input, input_sz, "after-page-load", custom, "js", &output);
|
||||
|
||||
@@ -238,7 +239,7 @@ TEST(PatternInsert, BeforeBody)
|
||||
char *input=NULL, *output=NULL;
|
||||
size_t output_sz=0, input_sz = 0;
|
||||
|
||||
input = execute_read_file(filename, &input_sz);
|
||||
input = tfe_read_file(filename, &input_sz);
|
||||
EXPECT_TRUE(input_sz>0);
|
||||
output_sz = insert_string(input, input_sz, "before-page-load", custom, "js", &output);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user