]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Unbreak spurious fails in gdb.base/step-line.exp
authorJoel Brobecker <brobecker@adacore.com>
Wed, 3 Jan 2018 03:50:38 +0000 (07:50 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Wed, 3 Jan 2018 03:57:47 +0000 (07:57 +0400)
My copyright year update in the copyright headers of the step-line
testcase caused it to start failing, due to shift in line numbers.

    FAIL: gdb.base/step-line.exp: continue to f1
    FAIL: gdb.base/step-line.exp: next to dummy 2
    FAIL: gdb.base/step-line.exp: next over dummy 2
    FAIL: gdb.base/step-line.exp: step into f2
    FAIL: gdb.base/step-line.exp: next over dummy 4
    FAIL: gdb.base/step-line.exp: next to dummy 5
    FAIL: gdb.base/step-line.exp: next to dummy 6
    FAIL: gdb.base/step-line.exp: next over dummy 6
    FAIL: gdb.base/step-line.exp: next to dummy 7
    FAIL: gdb.base/step-line.exp: next to dummy 8
    FAIL: gdb.base/step-line.exp: next over dummy 8
    FAIL: gdb.base/step-line.exp: next to dummy 9
    FAIL: gdb.base/step-line.exp: next to dummy 10
    FAIL: gdb.base/step-line.exp: next over dummy 10

This was caused by the copyright.py script after I changed it to
also update this testcase, which made the following transformation:

    -   Copyright (C) 2001-2017
    -   Free Software Foundation, Inc.
    +   Copyright (C) 2001-2018 Free Software Foundation, Inc.

We can easily unbreak the testcase without having to go back to
manual edits each year by adding an extra line in the header.

gdb/testsuite/ChangeLog:

* gdb.base/step-line.c: Add extra empty line in copyright header.
        * gdb.base/step-line.inp: Likewise.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/step-line.c
gdb/testsuite/gdb.base/step-line.inp

index 9ef8dd1be5fb037a22cd808df55ae8579177be9a..5f32d89c29b98347654600b8d899c2fce1bba79e 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-03  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.base/step-line.c: Add extra empty line in copyright header.
+       * gdb.base/step-line.inp: Likewise.
+
 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/dyn_stride.exp: Add slice test.
index 419d89ff52ec5e04bc3bfb01aae6d1cd3393f4d9..d56489bb239c3b1f5ef28261c2c1339babc4c09c 100644 (file)
@@ -1,4 +1,5 @@
 /* Test step/next in presence of #line directives.
+
    Copyright (C) 2001-2018 Free Software Foundation, Inc.
 
    This file is part of GDB.
index c2728871298a346a28d55cdc4d744095f98b6e28..8004a9fcbde0e05eda94e6f02ecbf7cd95b8d771 100644 (file)
@@ -1,4 +1,5 @@
 # Test step/next in presence of #line directives
+
 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify