From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.8 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS shortcircuit=no autolearn=no autolearn_force=no version=3.4.1 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 527E41F517; Tue, 5 Jun 2018 03:29:22 +0000 (UTC) From: Eric Wong To: e@80x24.org, spew@80x24.org Subject: [WIP 2/3] test/dtrace/test_array_create.rb: check line number Date: Tue, 5 Jun 2018 03:29:20 +0000 Message-Id: <20180605032921.32337-2-e@80x24.org> In-Reply-To: <20180605032921.32337-1-e@80x24.org> References: <20180605032921.32337-1-e@80x24.org> List-Id: I guess nowadays we create arrays in the parse/compile phase which gave us lineno==0. --- test/dtrace/test_array_create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dtrace/test_array_create.rb b/test/dtrace/test_array_create.rb index 44d4657b61..e2534a22b5 100644 --- a/test/dtrace/test_array_create.rb +++ b/test/dtrace/test_array_create.rb @@ -6,7 +6,7 @@ class TestArrayCreate < TestCase def test_lit trap_probe(probe, '[]') { |_,rbfile,saw| saw = saw.map(&:split).find_all { |num, file, line| - file == rbfile && num == '0' + file == rbfile && num == '0' && line == '1' } assert_equal([rbfile], saw.map { |line| line[1] }) assert_equal(['1'], saw.map { |line| line[2] }) -- EW