Skip to content

Commit 63f1135

Browse files
captain5050acmel
authored andcommitted
perf expr: Test parsing of floating point numbers
Add test for fix in: commit 5741da3dee4c ("perf expr: Parse numbers as doubles") Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: John Garry <john.garry@huawei.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Clarke <pc@us.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lore.kernel.org/lkml/20200513062752.3681-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent da23133 commit 63f1135

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/perf/tests/expr.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ int test__expr(struct test *t __maybe_unused, int subtest __maybe_unused)
3939
ret |= test(&ctx, "min(1,2) + 1", 2);
4040
ret |= test(&ctx, "max(1,2) + 1", 3);
4141
ret |= test(&ctx, "1+1 if 3*4 else 0", 2);
42+
ret |= test(&ctx, "1.1 + 2.1", 3.2);
4243

4344
if (ret)
4445
return ret;

0 commit comments

Comments
 (0)